home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / ToolUtils.h < prev    next >
Text File  |  1990-12-13  |  3KB  |  107 lines

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 8:11 PM
  4.     ToolUtils.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1985-1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __TOOLUTILS__
  15. #define __TOOLUTILS__
  16.  
  17. #ifndef __QUICKDRAW__
  18. #include <Quickdraw.h>
  19. #endif
  20.  
  21. #define sysPatListID 0
  22. #define iBeamCursor 1
  23. #define crossCursor 2
  24. #define plusCursor 3
  25. #define watchCursor 4
  26.  
  27. struct Int64Bit {
  28.     long hiLong;
  29.     long loLong;
  30. };
  31.  
  32. typedef struct Int64Bit Int64Bit;
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. pascal Fixed FixRatio(short numer,short denom)
  37.     = 0xA869;
  38. pascal Fixed FixMul(Fixed a,Fixed b)
  39.     = 0xA868;
  40. pascal short FixRound(Fixed x)
  41.     = 0xA86C;
  42. pascal StringHandle GetString(short stringID)
  43.     = 0xA9BA;
  44. pascal long Munger(Handle h,long offset,Ptr ptr1,long len1,Ptr ptr2,long len2)
  45.     = 0xA9E0;
  46. pascal void PackBits(Ptr *srcPtr,Ptr *dstPtr,short srcBytes)
  47.     = 0xA8CF;
  48. pascal void UnpackBits(Ptr *srcPtr,Ptr *dstPtr,short dstBytes)
  49.     = 0xA8D0;
  50. pascal Boolean BitTst(Ptr bytePtr,long bitNum)
  51.     = 0xA85D;
  52. pascal void BitSet(Ptr bytePtr,long bitNum)
  53.     = 0xA85E;
  54. pascal void BitClr(Ptr bytePtr,long bitNum)
  55.     = 0xA85F;
  56. pascal long BitAnd(long value1,long value2)
  57.     = 0xA858;
  58. pascal long BitOr(long value1,long value2)
  59.     = 0xA85B;
  60. pascal long BitXor(long value1,long value2)
  61.     = 0xA859;
  62. pascal long BitNot(long value)
  63.     = 0xA85A;
  64. pascal long BitShift(long value,short count)
  65.     = 0xA85C;
  66. pascal short HiWord(long x)
  67.     = 0xA86A;
  68. pascal short LoWord(long x)
  69.     = 0xA86B;
  70. pascal void LongMul(long a,long b,Int64Bit *dest)
  71.     = 0xA867;
  72. pascal Handle GetIcon(short iconID)
  73.     = 0xA9BB;
  74. pascal void PlotIcon(const Rect *theRect,Handle theIcon)
  75.     = 0xA94B;
  76. pascal PatHandle GetPattern(short patID)
  77.     = 0xA9B8;
  78. pascal CursHandle GetCursor(short cursorID)
  79.     = 0xA9B9;
  80. pascal PicHandle GetPicture(short picID)
  81.     = 0xA9BC;
  82. pascal Fixed SlopeFromAngle(short angle)
  83.     = 0xA8BC;
  84. pascal short AngleFromSlope(Fixed slope)
  85.     = 0xA8C4;
  86. StringHandle newstring(char *theString);
  87. pascal void SetString(StringHandle theString,const Str255 strNew)
  88.     = 0xA907;
  89. pascal long DeltaPoint(Point ptA,Point ptB)
  90.     = 0xA94F;
  91. pascal StringHandle NewString(const Str255 theString)
  92.     = 0xA906;
  93. pascal void ShieldCursor(const Rect *shieldRect,Point offsetPt)
  94.     = 0xA855;
  95. pascal void GetIndString(Str255 theString,short strListID,short index); 
  96. void getindstring(char *theString,short strListID,short index); 
  97. pascal void ScreenRes(short *scrnHRes,short *scrnVRes); 
  98. pascal void GetIndPattern(Pattern thePat,short patListID,short index);
  99. void setstring(StringHandle theString,char *strNew);
  100. void shieldcursor(const Rect *shieldRect,Point *offsetPt);
  101. long deltapoint(Point *ptA,Point *ptB); 
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105.  
  106. #endif
  107.